{extend name="public:_base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/uploadify/uploadify.css">
<style type="text/css">
    .form-horizontal .formControls:nth-child(2) {
        margin-bottom: 10px;
    }

    .uploadify {
        float: left;
        margin-bottom: 0;
    }

    .uploadify-queue {
        margin-bottom: 0;
    }

    .uploadify-button {
        line-height: 26px!important;
    }

    .btn-view {
        line-height: 30px!important;
        color: #fff!important;
        margin-left: 5px;
        margin-top: 9px;
        padding: 0 40px;
        border-radius: 15px;
    }
</style>
{/block}

{block name="js"}
{include file="public/_validform"}

<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__/admin/hui/lib/ueditor/1.4.3/ueditor.all.js"></script>

<!-- 下载文件 -->
<script src="__STATIC__/admin/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
<script src="__STATIC__/admin/js/upfile.js" type="text/javascript"></script>

<script type="text/javascript">
    var URL = {
            uploader:'{:url('admin/Upload/file')}',
        swf:'__STATIC__/admin/uploadify/uploadify.swf',
    }
    upload_file('file','*.txt; *.docx; *.doc');
    var ue = UE.getEditor('editor',{toolbars: [
        ['fullscreen', 'source', 'undo', 'redo','selectall'],
        ['bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc']
    ]});
</script>
{/block}

{block name="main"}

<div class="user_conver">

    {include file="public:_right"}

    <!-- 我的简历 -->
    <div class="user_item my_data">
        <!-- 标题 -->
        <div class="user_item_title">
            <i class="glyphicon glyphicon-cog"></i>
            发布/编辑 简历 <font>Publish/Edit RESUME</font>
        </div>
        <!-- #标题 -->

        <!-- 内容 -->
        <div class="user_item_cont user_info_cont">

            <form class="form form-horizontal" action="#" id="form" method="post">
                <div class="row cl">
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>{:lang('my resume')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <input  class="input-text" readonly="readonly" name="file" id="file_post" value="{$data.file ?? ''}" />
                        <input id="file" name="file_upload" type="file" multiple="true">
                        <input name="old_file" type="hidden" value="{$data.file ?? ''}">
                        <a class="btn btn-info btn-view" href="__PUBLIC__/uploads/file/{$data.file ?? ''}" target="_blank">{$data.file ?lang('View'): ''}</a>
                    </div>
                    <label class="form-label col-xs-2 col-sm-2"><span class="c-red">*</span>{:lang('my resume')}：</label>
                    <div class="formControls col-xs-10 col-sm-10">
                        <script id="editor" type="text/plain" name="center" style="width:100%;height:400px;">{$data.center|default=''|html_entity_decode ?? ''}</script>
                    </div>
                </div>

                <div class="row cl" style="border-bottom: 0;">
                    <div class="col-xs-6 col-sm-6 col-xs-offset-4 col-sm-offset-2">
                        <input name="id" value="{$data.id ?? ''}"  type="hidden" />
                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;{:lang('save')}&nbsp;&nbsp;">
                        <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;{:lang('cancel')}&nbsp;&nbsp;">
                    </div>
                </div>
            </form>

        </div>
        <!-- #内容 -->
    </div>
    <!-- 我的简历 -->

</div>

{/block}